<?php

require_once '__ROOT__.php';

$php_path = explode("/Public",__ROOT__);
$save_path = $_SERVER['DOCUMENT_ROOT'].$php_path[0]."Data/Admin/kindeditor/uploads/".date("Y")."/".date("m")."/".date("d");


if ($save_path !== '') {
		$mkdir = explode($php_path[0],$save_path);
		$mk    = explode("/",$mkdir[1]);
		$path  = $mkdir[0].$php_path[0];
		foreach($mk as $key => $val){
		       $path .= "/".$val;
			   if(!file_exists($path)){
				    echo $path."<br>";
				   }
		}
		exit;mkdir($path);
	}

?>